package com.example.canvasball;


public class Coordinate {
	int x;
	int y;
	public Coordinate(){
		
	}
	public Coordinate(int a,int b){
		x=a;
		y=b;
	}
	public int getX(){
		return x;
	}
	public int getY(){
		return y;
	}
	public void setX(int newX){
		x=newX;
	}
	public void setY(int newY){
		y=newY;
	}
	public boolean equals(Coordinate other) {
        if (x == other.x && y == other.y) {
            return true;
        }
        return false;
    }
	public void setCoord(Coordinate newcood){
		x=newcood.getX();
		y=newcood.getY();
	}
}
